package top.kaoshanji.r1ch04b;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 代码清单-r1ch04b-01：ApplicationContext自动添加后置处理器
 * @author kaoshanji
 * ^_^
 * create time 2025/5/5 17:32
 */
public class ApplicationContextMain {

    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("r1ch04b/context-car-beans.xml");
        Car car = context.getBean("car", Car.class);
        car.introduce();

    }

}
